﻿<UserControl x:Class="Test.Scenes.AstarTest1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local='clr-namespace:Test'
    xmlns:nczp='clr-namespace:NczControlLibrary.Panels;assembly=NczControlLibrary'
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <local:Byte2Brush x:Key='b2b'/>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" >
        <ListBox Background='{x:Null}' BorderThickness='0' Width='420' Height='400' Name='lb'>
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <nczp:NczWrapPanel ColumnDistance='2' RowDistance='2'/>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Rectangle Width='30' Height='28' Fill='{Binding  Converter={StaticResource b2b}}' Stroke='SkyBlue'/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
